<head th:fragment="headerCss">
    <meta charset="utf-8">
    <title>湖南金职伟业母婴护理有限公司</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta name="keywords" content=""/>
    <meta name="description"
          content="湖南金职伟业母婴护理有限公司"/>
    <link rel="stylesheet" href="/js/layui/css/layui.css">
    <!-- Bootstrap CSS File -->
    <link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/js/layui/css/layui.css">
    <link rel="stylesheet" href="/css/examination/common.css">
    <link rel="shortcut icon" href="favicon.ico">
    <style>
        .a {
            color: black;
            text-align: center;
            font-weight: bold
        }
    </style>
</head>
<body class="signin">
<div class="header">
    <a href="javascript:;" class="logo">
        <img src="/img/logo2.png" style="width:217px;height:49px" alt="logo">
        <!--<p>1+X证书制度试点工作</p>-->
        <p id="title"></p>
        
    </a>
</div>
<div class="main_content has_back" style="top: 60px;">
    <div class="window_box" style="width:542px;padding:60px 20px;margin-top: 200px">
        <div class="loginIn">
            <h2 class="a">你已经成功提交，</h2>
            <h2 class="a">祝你顺利通过考试！</h2>
            <h2 class="a" id="backGroundImage" style="margin-top: 20px;font-size: 30px"></h2>

        </div>

        <div class="loginIn">
            <h3 class="a" style="color: red">如果你想快速就业</h3>
                <h3 class="a" id="resume"> <a style="text-decoration:underline;cursor:pointer">点击我投递简历 </a></h3>

            <!--        href="https://peixun.jz1x.com/cultivate/addResume"-->
        </div>
    </div>
    <input type="hidden" id="name" th:value="${name}">
    <input type="hidden" id="ticketNumber" th:value="${ticketNumber}">
    <input type="hidden" id="idNumber" th:value="${idNumber}">
          <!--<img src=""  style="width: 100%"/>-->
</div>
<!-- 全局js -->
<script src="/js/jquery.min.js?v=2.1.4" th:src="@{/js/jquery.min.js?v=2.1.4}"></script>
<script src="/js/plugins/layer/layer.min.js" th:src="@{/js/plugins/layer/layer.min.js}"></script>
<script>
    $(function () {
        $("#backGroundImage").text(window.localStorage.getItem("backGroundImage"))
    });
    $(function(){
        $("#resume").click(function(){
            layer.use('extend/layer.ext.js', function () {
                layer.prompt({title: '请输入手机号码'}, function(phone, index){
                    $('.layui-layer-input').attr('type','number')
                    var mobile = $('.layui-layer-input').val()
                    if(!(/^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(mobile))){
                        layer.msg('手机号码填写错误，请填写正确的手机格式');
                    }
                    layer.close(index);
                    var name = $('#name').val()
                    var ticketNumber = $('#ticketNumber').val()
                    var idNumber = $('#idNumber').val()

                    $.ajax({
                        url: "/jzApi/examinations/userPapers",
                        type: 'GET',
                        data: {
                            name:name,
                            ticketNumber: ticketNumber,
                            idNumber: idNumber,
                            phone: phone
                        },
                        success:function(res){
                            if(res.code == 0){
                                location.href='https://peixun.jz1x.com/cultivate/addResume'
                            }else{
                                return false
                            }
                        }
                    })
                });
            });

        })
    })
</script>
</body>





